<?php
class ControllerAffiliateAccount extends FrontController {
	public function index() {
		if (!$this->affiliate->isLogged()) {
	  		$this->session->data['redirect'] = US('affiliate/account');
	  		$this->redirect(US('affiliate/login'));
    	}

      	$this->data['breadcrumbs'][] = array(
        	'text'      => $this->_['text_account'],
			'href'      => US('affiliate/account'),
        	'separator' => $this->_['text_separator']
      	);

		$this->document->setTitle($this->_['heading_title']);
		$this->data['success'] = $this->session->flashdata('success');

		$this->display('affiliate/account.tpl');
  	}
}
?>